package database;

import java.sql.*;

public class SetConn {
	
	private Connection conn=null;
//	private static String url = "jdbc:mysql://10.111.230.145:3306/se";
	private static String url = "jdbc:mysql://127.0.0.1:3306/se";
    private static String user = "root";
    private static String password = "sa";
	public Connection setupConn(){
		try{
			if(conn==null){
				Class.forName("com.mysql.jdbc.Driver");
				conn=DriverManager.getConnection(url, user, password);
			}
		}catch(Exception e){
			e.printStackTrace();
		}
		return conn;
	}
}
